Skip to content

feat(pm): a record naming CONTRACT_REVIEW_TIER is written only on a transcript served at the tier - #33616

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-f3mcct
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-f3mcct

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33605

domain:skills#1 · os-project-manager · session_01FEkQ5paMCiUCGnMqBWAio9

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么: 新增 scripts/pm/verify-review-tier.mjs,读复核那次运行的转录(子代理输出文件,或卡线程/席内复核时本会话自己的转录),只在每一轮都由 CONTRACT_REVIEW_TIER 服务、没有降档提示时放行;post-stamped.mjs 与 label-write.mjs --comment-file 对 Served-tier: CONTRACT_REVIEW_TIER 的 ## Contract review 评论要求 --tier-evidence 且该脚本通过,否则拒发;contract-review.md 改写一条规则。
  • 为什么改: 你的裁决「先补三项再合并」(2026-11-15T02:21:59Z) 的第三项:11-14 起 19 条记录写着达档却不是达档跑的,档位证据只能留在本地,之前没有任何仓库脚本在验。
  • 风险与回滚: 只拒「写着 CONTRACT_REVIEW_TIER 却没证据」的记录;TIER_DEFAULT 记录、非记录评论、卡正文都不受影响(自检钉住)。回滚即 revert。
  • 先看: scripts/pm/verify-review-tier.mjs 的 judgeReviewTranscript;post-stamped.mjs 的 recordTierEvidenceRefusal 与它在 judgeBody 里的一行;contract-review.md 改写的四行。
  • 两分钟验证: node scripts/pm/post-stamped.mjs --self-test,预期 786 例全过(其中跑一次验证脚本自己的 20 例自检)。
  • 需要你做的: 无,席位落地(Tier S,须现 head 达档复核 PASS)。

What changes

  1. scripts/pm/verify-review-tier.mjs (new). judgeReviewTranscript(text) reads the reviewing run's JSONL transcript and passes only when:

    • every non-blank line parses as a JSON object;
    • at least one assistant entry exists, and every one has a served model (message.model) equal to CONTRACT_REVIEW_TIER, imported from dispatch-gates.mjs and never respelled;
    • every requestedModel and every model attachment (attachment.identity.modelId) present equals it too;
    • no harness system entry carries the fallback notice ("switched to … because its earlier model could not be used").

    Empty, unparseable, unreadable, or no assistant turn refuses with the reason. The verdict line names the tier by its constant NAME only: no model identifier, no path, no transcript content. CLI: node scripts/pm/verify-review-tier.mjs PATH (exit 0 pass, 1 refused, 2 usage) and --self-test.

    It reads two transcripts of one format. A review sub-agent's output file is one. A session's own transcript (~/.claude/projects/SLUG/SESSION.jsonl) is the other, for a review a card thread or a seat ran itself. The session form carries every turn of the session, so it passes only when the whole session ran at the tier.

  2. scripts/pm/post-stamped.mjs. A new --tier-evidence=PATH option (comments only; with --body, or empty, it is refused). judgeBody (the one path main and label-write.mjs --comment-file share) refuses a ## Contract review comment whose Served-tier: reads CONTRACT_REVIEW_TIER unless the evidence passes verifyReviewTranscriptFile, imported from the new file. The check sits beside the record's keyed-line refusal. A record naming TIER_DEFAULT, every comment that is not a record, and every card body are untouched. The refusal names the tool it came from and both evidence paths a reviewer can follow, and carries no model identifier and no path. The usage text gains three lines.

  3. scripts/pm/label-write.mjs. --tier-evidence PATH rides a --comment-file stroke (alone, or naming no file, it is refused) and is passed to both judgeBody calls, the fold and --release. So the 「写记录的席同笔摘 needs:contract-review」 stroke can carry an at-tier record. The header and usage text say so.

  4. .claude/skills/pm-dispatch/references/contract-review.md. The Served-tier: bullet now carries the rule. A CONTRACT_REVIEW_TIER record goes only through a write tool with --tier-evidence: a sub-agent (whose Agent call passes the tier's model explicitly) gives its output file, and a card-thread or in-seat review gives its own session's ~/.claude/projects/ transcript. A refusal means rerun at tier, never rename the tier. Paid in place (ceiling 63 unchanged):

    • the file's intro line and its blank line are deleted. That line was a navigation pointer to landing-operations.md 〈入队与落地〉 plus a scope sentence. landing-operations.md already routes here at its lines 13 and 78, and the gate it pointed to is stated in this file's own 请审/求批 bullet;
    • 「申报面加 --face declaration」 is deleted, because the --template output it points at teaches that flag itself.

skip-changeset: .claude/** and scripts/pm/** only, published by no package.

Tests

  • node scripts/pm/verify-review-tier.mjs --self-test: 20 cases across 5 pinned batteries (floor and verdict handshake per AGENTS.md). CI runs it inside check:pm-post-stamped, whose battery spawns it and requires exit 0 and its success line:
    • all turns at the tier pass and count turns, with or without requestedModel; ⭐ a SESSION-shaped transcript (with queue-operation, last-prompt, mode and system entries) run wholly at the tier passes;
    • ⛔ one off-tier turn among at-tier turns refuses and names its line; a fully off-tier run, a turn requested as another model, a model attachment naming another model, and a session transcript with one turn at another tier each refuse;
    • ⛔ a system entry carrying the fallback notice refuses (flat or nested); ⭐ the notice quoted in a tool result does NOT refuse, so a reviewer that reads this file or the rulebook does not refuse itself;
    • ⛔ a turn with no model field, no assistant turn, an empty file, a torn last line, a non-object line, and an unreadable path each refuse; none throws;
    • no verdict line carries a model identifier or the path read.
  • node scripts/pm/post-stamped.mjs --self-test: 786 cases across 29 batteries pass. The new battery "the record tier" has a floor of 15 (SELF_TEST_BATTERY_FLOOR 18 → 29, the roster's new size). It runs BEFORE the self-test counts its failures (review round 1 must-fix: it ran after the count, so a false case was never counted):
    • ⛔ an at-tier record with no evidence, with an off-tier transcript, with an empty transcript, and with a missing path are each refused, and no refusal carries a model identifier or the temp path;
    • ⭐ the same record passes on an at-tier sub-agent transcript, and on a session transcript run wholly at the tier;
    • the refusal names the sender it was handed (label-write: REFUSED) and both evidence paths;
    • the verifier's own --self-test runs here and exits 0;
    • ⭐ a TIER_DEFAULT record, a non-record comment naming the tier in prose, and a card body all pass with no evidence;
    • the CLI carries --tier-evidence on a comment and refuses it with --body or empty;
    • structural: the verifier is imported from verify-review-tier.mjs, never restated.
  • Real transcripts (this session's own probe sub-agents, one launched with the tier's model and one with another): the at-tier one PASSES (2 turns), the other REFUSES at its model attachment line, and this session's own main transcript REFUSES too. A live post-stamped.mjs --comment --dry-run of a signed at-tier record exits 2 with no evidence, exits 2 with the off-tier transcript, and exits 0 with the at-tier transcript. None of the outputs carries a model identifier or the transcript path.
  • Mutation proof (round 1): with the judgeBody line that returns the tier refusal deleted (marker on disk counted 1, anchor 0), post-stamped --self-test exits 1 with 5 of 783 cases failed, all in the record-tier battery. Restored with git checkout HEAD --, the blob hash is identical and the run is green again.
  • node scripts/pm/label-write.mjs --self-test: 227 cases across 16 batteries pass on the merge with main (fold battery floor 24 → 28):
    • ⛔ an at-tier record folded with no --tier-evidence is exit 2 with zero sends, its refusal naming label-write;
    • ⛔ the same with an off-tier transcript is exit 2 with zero sends and no path in the text;
    • ⭐ with an at-tier transcript, the record and the needs:contract-review removal go in ONE dispatch, exit 0;
    • the CLI refuses --tier-evidence alone or naming no file.

Acceptance notes

  • The transcript shape, measured (order: falsify freely). The assumption held with one addition. Assistant entries carry message.model. They also carry requestedModel, and the run carries one attachment of type model with identity.modelId. The script reads all three as JSON lines; it does not grep.
  • The fallback notice was not found in a sub-agent transcript. It is the harness's completion notification to the PARENT session. Neither probe transcript carries it, and neither probe fell back, so its absence there is a reading of two clean runs, not a proof. A mid-run switch shows in the transcript as an assistant turn served by another model, and that refuses on its own; the order said that is enough. The notice is still refused if a harness system entry carries it. It is deliberately NOT searched in tool results, assistant text or attachments. A reviewer reading this file or the rulebook would otherwise refuse its own review, and a recalled memory note quoting the notice arrives as an attachment.
  • Which formats are reachable (card; review round 1 SF-1). I measured this session's own main transcript: 430 lines, all parse, 131 assistant turns each with a served and a requested model, one model attachment, and extra kinds (queue-operation, last-prompt, mode, system stop_hook_summary) that carry no model. The verifier judges it honestly: it refuses this session, which runs at the default tier. So two paths are supported. A seat that runs a sub-agent passes the agent's output file. A card thread or seat that reviews itself passes its own session transcript, which passes only if the whole session ran at the tier. A seat still cannot pass a transcript that lives in ANOTHER thread's container; that thread posts its own record with its own transcript.
  • Boundary (card). This catches honest failure: a missing model parameter or a mid-run fallback. It does not stop a seat writing a false record or passing another run's transcript. The post-merge audit (pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach #33603) owns that.
  • CI runs the verifier's self-test through check:pm-post-stamped (review round 1, the option that keeps package.json and the governed lint.yml untouched). The post-stamped battery spawns verify-review-tier.mjs --self-test and requires exit 0 and its success line.
  • Accepted deviations (review round 1): N4, a quoted record is refused; N5, the verifier's residuals, go to pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach #33603. The "floor, evaluated last" comment is accurate again now that the battery runs above it.
  • Body write: os-dev.md keeps PR-body edits with the seat, but the relay accepts a pull's body patch only from the session that signed it, so the seat asked me to apply this revision with one relay issue_patch. That is a named deviation from os-dev.md, made at the seat's request.
  • Tier. check-governed-merges.mjs --branch reads Tier S: the only governed path is .claude/**. The seat lands it after a ## Contract review PASS at CONTRACT_REVIEW_TIER on the current head. dispatch-gates --tier reads no path-derived mandate. The governed rules text in the diff makes the review owed at the contract-review tier (contract-review.md 档随面定).

Verification

check-governed-merges --branch (head 2f8c4e0, the merge with main)
governed-surface predicate: 1 of 4 path(s) hit the register (13 surfaces govern objectstack).
  GOVERNED — Tier S: every governed path here lies under a Tier S surface, so the OWNING
      seat lands this PR through the queue once its thread (or its card) carries a `## Contract review` record
      for the CURRENT head — `Served-tier: CONTRACT_REVIEW_TIER`, `**VERDICT: PASS**` — and every check green
      .claude/** x1 — .claude/skills/pm-dispatch/references/contract-review.md
  paths not on the register: scripts/pm/label-write.mjs, scripts/pm/post-stamped.mjs, scripts/pm/verify-review-tier.mjs
  size: 451 changed line(s) (+430 / -21) under the human-merge threshold
dispatch-gates --tier and --ran (head 2f8c4e0)
Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s), derived here, not recalled.
changed lines: 451 (+430 / -21; 4 file(s)) vs the human-merge threshold 3000: under
Run reconciliation — 41 derived, 41 run, 0 NOT-MEASURED, 0 UNRUN.
dispatch-gates --ran: 41 derived famil(ies) accounted for — 41 run, 0 NOT-MEASURED (a DERIVED zero).

All 41 derived families exited 0 locally on 2f8c4e0 (the record is the project file pm-orders/skills/33605-r3-gates-ran.txt), including check:pm-post-stamped, check:pm-label-write (new to the list with this round), check:pm-skill-ratchet (contract-review.md 63 lines, ceiling 63, headroom 0), check:pm-dispatch-gates, check:pm-skill-id-lint, check:doc-authoring and check:nul-bytes. check:doc-formula-expressions ran after pnpm --filter "@objectstack/lint..." build under the verify lock, rebuilt after the merge.

post-stamped dry-runs (a signed at-tier record)
(no --tier-evidence)       exit 2  post-stamped: REFUSED — this `## Contract review` record declares `Served-tier: CONTRACT_REVIEW_TIER` without evidence that passes. Nothing was written.
                                   no --tier-evidence was given — nothing shows this review was served at CONTRACT_REVIEW_TIER
(off-tier transcript)      exit 2  verify-review-tier: REFUSED — line 5 tells the run it is a model other than CONTRACT_REVIEW_TIER.
(at-tier transcript)       exit 0  post-stamped: DRY RUN — nothing was written.

Generated by Claude Code

…ranscript served at the tier

verify-review-tier.mjs reads a review sub-agent's JSONL output and passes
only when every assistant turn (served and requested model) and every
model attachment equals CONTRACT_REVIEW_TIER and no harness system entry
carries the fallback notice; empty, unparseable or unreadable refuses.
post-stamped.mjs refuses a `## Contract review` comment whose Served-tier
names the tier unless --tier-evidence=PATH passes that check; the path and
model ids stay local. contract-review.md gains the rule line, paid by the
intro pointer line.

Claude-Session: https://claude.ai/code/session_01FEkQ5paMCiUCGnMqBWAio9
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 97bbc81dfa9eed1f2d56be78796913ccdbefdcd6
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/contract-review.md + scripts/pm/verify-review-tier.mjs, scripts/pm/post-stamped.mjs (the --tier-evidence refusal and its battery)

Inputs read: card #33605 body and both comments (claim, os-dev-report); PR #33616 body, file list (3 files) and the net diff against main; the check-runs on this head. Code outside the diff was read, not reviewed: record-recognisers.mjs (readServedTier, the record locator), check-half-states.mjs (CONTRACT_REVIEW_HEADING_MARKER), label-write.mjs (its two judgeBody calls), fleet-write/dispatch.mjs (the edit door), check-self-test-wired.mjs, package.json, lint.yml. 66 real sub-agent transcripts in the seat's task folder were read for shape only; the PR's script was not run.

Check-runs at the time of this record: 21 completed with success, the rest skipped by design, and four not finished: Lint · PM dispatch-gates (in progress), Test Core (1/8) and (2/8) (in progress), TypeScript Type Check (queued). No red. The verdict below does not rest on them.

① Derived judgments

  • post-stamped.mjs --comment accept set NARROWS: a comment the record locator reads as a record (CONTRACT_REVIEW_HEADING_MARKER) whose first Served-tier: line reads CONTRACT_REVIEW_TIER is refused without passing evidence. Right, and it is the card's item 2. The predicate is the queue guard's own (same marker, same readServedTier on the whole body), so every spelling that escapes the refusal also fails to stand in the guard: other case, the tier id written out, a first line naming TIER_DEFAULT above a second naming the contract tier, prose before the token, no line at all. I found no spelling that posts without evidence and still stands.
  • label-write.mjs --comment-file accept set NARROWS too, and the PR does not name it: both of its judgeBody calls pass { mode: 'comment' } with no evidence, and the file takes no evidence option, so an at-tier record can no longer be folded into a label stroke at all. Wrong as derived (the PR body says only that label-write "folds comments through the same judgeBody"); see ④ finding 3.
  • post-stamped.mjs option set WIDENS by --tier-evidence=PATH (comment mode only; refused with --body or empty). Right.
  • New module scripts/pm/verify-review-tier.mjs with exports judgeReviewTranscript, verifyReviewTranscriptFile, verdictText, FALLBACK_NOTICE, exit codes. Repo tooling, published by no package. Right.
  • judgeBody is no longer pure: one file read, only when the body is an at-tier record. Its jsdoc says so. Right.
  • contract-review.md: one rule added (two lines), the intro pointer line removed, 63 lines, at the ratchet ceiling. Right as a count; see ④ finding 2 for its content.

② Semver level

skip-changeset is right: the diff touches .claude/** and scripts/pm/** only, nothing a package publishes; Check Changeset is green.
Clause-②: no — agreed. No published schema or package accept set moves; the narrowing is of a seat tool.

③ Boundary flags

  • Dev flag (a), is the per-turn model check enough without the fallback notice: yes, inside the card's boundary. Read against 66 real transcripts (2911 assistant entries): every assistant entry carries message.model and requestedModel, each run carries one model attachment, no transcript carries a system entry, so the notice scan is dead code today and the per-turn check is the whole instrument. Each case asked: a run that never names a model refuses (no served model); only user lines refuses (zero turns); a torn last line refuses (not JSON); a synthetic or error turn with a non-tier model value refuses, failing closed; the task folder's non-agent outputs refuse as non-JSON; the real outputs are symlinks and readFileSync follows them; a directory refuses on the read error, whose code alone is printed. Residuals, all nits and listed in ④: a transcript cut cleanly between turns passes on its prefix; a reviewer that delegates to its own sub-agent is judged on its own turns only; another run's transcript passes (the card gives that to the post-merge audit, pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach #33603).
  • Dev flag (b), a review run in a separate card thread: NOT answered in the tree. The PR body says the seat cannot produce evidence for it and the thread can check its own session transcript; the refusal text and the rule line say neither. Escalated as ④ finding 2.
  • Dev flag (c), payment and wiring: the payment (the intro pointer line) is acceptable; landing-operations.md still routes to this file. The wiring claim is false in effect: package.json has no script naming verify-review-tier.mjs, no workflow names it, so check:self-test-wired does not count it and its 18 cases run nowhere in CI; and the post-stamped battery that is said to cover it cannot fail (④ finding 1).
  • open_questions (wire a check:pm-verify-review-tier script, A leave or B follow-up): answered B, and not as a follow-up. With finding 1 fixed, A becomes defensible for the refusal's two directions, but the verifier's own 18 cases (the identity attachment, the requested model, the notice scope, the output hygiene) still run in no job. One package.json line plus its lint step is the seat's call to authorise on this card's surface.
  • Deviation, no trailing HTML signature in the PR body: accepted; the prose signature line is present.
  • Leak check: the refusal and verdict texts carry the constant's name and a line number only; the path is never echoed; relayAction sends op, issue and body and nothing from the options; --json output does not print the option. No model identifier in the three files (the value is imported). Clean.
  • Bypass doors outside this diff, noted and not charged to this PR: a hand-written relay actions file with a comment op, and comment_edit, are judged for the signature only, so a record can reach the board without this check. Same boundary as every other post-stamped refusal; the new rule line makes using them for an at-tier record a rule breach. Carrier: pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach #33603.

④ Design judgment

1. must-fix — the new post-stamped battery cannot fail. In selfTest() the battery "the record tier" was inserted AFTER the line that computes failed from cases and after the loop that prints every case (the block that opens with the comment "The floor, evaluated last"). Its 12 cases are pushed into cases once failed has already been computed, so a false assertion in any of them is neither printed nor counted: the run still ends "783 cases pass" and exits 0. Only the count floor (12 registered) binds, and it binds on running, not on holding. Deleting the recordTierEvidenceRefusal line from judgeBody would leave check:pm-post-stamped green. The card's item 2 asks to "pin both directions in post-stamped's self-test"; nothing is pinned, and together with flag (c) no CI job can go red on this refusal or on the verifier. Fix: move the battery above the failed line (beside the "review route" battery); the delta review reads that the 12 names print. The behaviour itself reads correct in the code; this finding is about the pin.

2. should-fix — the card-thread route the same file teaches is left without a stated path. contract-review.md still says the tier is taken "经子代理或卡线程取" and that a card-thread reviewer "照上落现 head 记录", and the brief template tells that reviewer to post the record itself. After this diff that post is refused, and the refusal tells it to "pass the review sub-agent's output transcript", which is not something a thread reviewer has; the new rule line names only "子代理输出". The card asked the developer to say which formats are reachable and refuse the rest; that statement exists in the PR body alone. Either the refusal text and the rule line name the thread case (the thread posts with its own session transcript as evidence, once that is measured on an at-tier main session, which the dev did not do), or they say plainly that a thread review cannot be recorded at the tier and where it goes instead. The same gap covers a review seat that reviews in its own main session.

3. should-fix — the one-stroke record write is dead-ended with a wrong hint. contract-review.md (the needs:contract-review section) has the seat that writes a PASS record remove the label "同笔", which is label-write.mjs --remove ... --comment-file. That path now always refuses an at-tier record, with a text headed "post-stamped: REFUSED" that tells the seat to pass --tier-evidence=PATH, an option label-write does not take. It fails closed, so no false record lands, but a taught flow breaks and the refusal misdirects. Fix one of: thread the option through label-write's two judgeBody calls, or make the refusal say, when tool is label-write, that the record goes alone through post-stamped first; and state the two-stroke order in the rule text.

4. nit — a quoted record is treated as a record. The marker matches a ## Contract review heading inside a blockquote or a code fence, and "## Contract review correction" too, so a correction or adoption comment that quotes an at-tier record with its Served-tier: line at a line start is refused without evidence it cannot have. Consistent with the existing keyed-line refusal's scope; the workaround is to not open a line with the key. Accepted deviation.

5. nit — verifier residuals. advisorModel (present on every assistant entry, equal to the served model in all 2911 read) is not compared; a model value carrying a context suffix would refuse an at-tier run (not seen in the sample); nested sub-agents are not followed; a cleanly truncated prefix passes. None changes the honest-failure boundary the card sets. Follow-up under #33603 if wanted.

6. nit — stale comments. After the fix in 1 the "floor, evaluated last" comment is true again; label-write's header list of what judgeBody judges does not mention the tier check (outside this diff).

The verifier (judgeReviewTranscript) agrees with the card's item 1 sentence by sentence: tier imported from dispatch-gates.mjs and never respelled, every served and requested model and the identity attachment compared exactly, unreadable, empty and unparsable refuse with a reason, self-test pins the four cases the card names, floors and the verdict handshake are present.

Implemented-by: claude/project-thread-f3mcct
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: FAIL

Adopted by the seat 2026-11-15T02:57Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

…-write folds a record on it, CI runs the verifier's self-test

Claude-Session: https://claude.ai/code/session_01FEkQ5paMCiUCGnMqBWAio9
Co-Authored-By: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bd90104a2041ea42c2398c49b11bd16d48d4c680
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/contract-review.md + scripts/pm/verify-review-tier.mjs, scripts/pm/post-stamped.mjs (the --tier-evidence refusal and its battery), scripts/pm/label-write.mjs (the --tier-evidence fold and its battery)

Delta review. Base: 97bbc81dfa9e, whose record 6888257144 is FAIL (must-fix 1, should-fix 2 and 3, nits 4 to 6). Three developer commits since (0dc1a041, e3f0c988, bd90104a), no main merge. Inputs read: card #33605 body and both comments; PR #33616 body, file list (4 files) and the base record; the diff base to head and the net diff against main; the check-runs on this head and the log of the job that runs check:pm-post-stamped. Code outside the diff was read, not reviewed: invoked-as.mjs, record-recognisers.mjs (the template text), package.json, lint.yml, check-skill-line-ratchet.mjs. For shape only, and never run through the PR's script: the seat's sub-agent transcripts in its task folder and a type-and-field census of the seat's own session transcript (entry kinds, which fields carry a model, where the fallback wording occurs).

Check-runs on this head: all 48 completed, 26 success, 22 skipped by design (Check Changeset among them, on the skip-changeset label). None red, none still running.

① Derived judgments

  • label-write.mjs option set WIDENS by --tier-evidence PATH (both spellings parse), accepted only beside --comment-file, refused alone and refused empty. Right.
  • label-write.mjs --comment-file accept set: the narrowing the base record named as wrong is repaired. An at-tier record folds again, on evidence that passes; without it, or on a transcript that refuses, exit 2 and zero sends. Both judgeBody calls (the fold and composeReleaseBody) carry the option. Right.
  • post-stamped.mjs: recordTierEvidenceRefusalText gains a second parameter naming the sender; judgeBody passes its own tool. Its accept set is unchanged from the base. Right.
  • verify-review-tier.mjs: judgeReviewTranscript is byte-for-byte the base's. The session transcript was already accepted by the code; this head documents it and pins it (one pass case, one refuse case). No accept-set change. Right.
  • Self-test floors move with the cases: the record-tier battery 12 to 15, label-write's fold battery 24 to 28, the verifier's first two batteries 3 to 4 and 4 to 5. Counted against the code: 15, 4 new, 20 total. Right.
  • contract-review.md: the two Served-tier bullets become one, 63 lines, at the ratchet ceiling of 63. Dropped against the base: the --face declaration hint and the clause that a brief's self-description does not count. Right; see ④.

② Semver level

skip-changeset is right: .claude/** and scripts/pm/** only, published by no package.
Clause-②: no — agreed. No published schema or package accept set moves.

③ Boundary flags

  • M1 (base finding 1): closed. See ④.
  • SF-1 (base finding 2, dev flag b): closed. See ④.
  • SF-2 (base finding 3): closed. See ④.
  • Dev flag (c) and the open_questions entry (wire the verifier's self-test): answered by another route than the base record proposed. No package.json line was added; post-stamped's self-test spawns the verifier's and counts its exit and success line, so the verifier's 20 cases now run inside check:pm-post-stamped. The job log on this head shows that case and the 786-case verdict. Accepted.
  • Leak check on the delta: the refusal now interpolates the sender name (post-stamped or label-write) and names the generic location ~/.claude/projects/; it carries no evidence path and no model identifier, and the no-leak case now also requires each of its three rows to be a refusal. label-write's dry-run prints the packed payload, which holds the comment body and the label ops and nothing from the option. Clean.
  • The PR body still describes the base (3 files, 783 cases, sub-agent evidence only). Judged on the tree; listed as a nit in ④.

④ Design judgment

Base finding 1 (must-fix), CLOSED. The record-tier battery now sits above the line that computes failed and above the loop that prints the cases, so a false case in it is printed and counted; the floor block follows it. The spawn of the verifier's self-test reads sound: the running node binary, the verifier's path resolved from the module URL (so the working directory does not matter), the environment inherited, and the case requires BOTH exit 0 and the verifier's own success line, so a child that did nothing cannot pass it. invoked-as.mjs makes the child a real entrypoint under a symlinked checkout too. The CI log on this head carries the case as passed.

Base finding 2 (should-fix), CLOSED. The refusal, the usage text, the verifier's header and the rule line all name the second evidence path: the reviewing session's own transcript, which passes only when every assistant turn of the whole session is at the tier. Tried against it, by reading:

  • earlier turns at the tier and the review turns elsewhere, or the reverse: refused at the first off-tier line. The text says every turn, so the reviewer knows a mixed session cannot be evidence and reruns.
  • zero assistant turns after the other kinds are skipped: refused (the turn count is checked at the end).
  • a system entry carrying the fallback wording: refused, as before.
  • does skipping the model-less kinds open a hole: no. In the real session transcript read for shape, every one of its assistant entries carries both the served and the requested model, the run's identity attachment recurs after each restart and is compared each time, and the fallback wording occurs only in tool results, tool calls and attachments (a memory note and file reads), never in a system entry. The per-turn check is the whole instrument and it is unchanged.
  • a session transcript containing a sub-agent's turns: it does not. Sub-agent turns live in their own files; the session file holds none. See nit 7.
  • contract-review.md: the text matches the code, both writers take the option, and --face declaration is taught by the --template output on main. The card's item 3 (explicit model on the Agent call; post only through the evidence check) is still stated.

Base finding 3 (should-fix), CLOSED. label-write takes the option, passes it to both judgeBody calls, refuses it alone or empty, and the refusal opens with label-write: REFUSED and tells the seat to pass the option on this label-write call. The at-tier case sends the record and the needs:contract-review removal in one dispatch; the bare and off-tier cases send nothing. The structural pins in both self-tests were updated to the new call shape, so they still bind.

Base nit 6, CLOSED. The floor comment is true again; label-write's header names the tier check.

New on this head, all nits:

7. nit — a session's transcript says nothing about a review it delegated. A session at the tier that hands the review to its own sub-agent, and then passes its session transcript, passes whatever served the sub-agent: the sub-agent's turns are not in the session file, and a sub-agent's fallback notice reaches the parent as a user or attachment entry, which is deliberately not scanned. The refusal text confines the session path to "a review this session ran itself"; the rule line says "卡线程或席内复核", which is looser. This is the card's stated boundary (another run's transcript), not a new hole. Follow-up under #33603; a tighter word in the rule line would be a head move.

8. nit — the verifier's header understates the session shape. It lists four extra entry kinds and says none carries a model. The real session transcript has more kinds, and its cost summary entries carry a per-model usage map. The code is right to skip them (they are not turns); only the comment is inexact. Accepted deviation.

9. nit — the rule line's file name placeholder. The session transcript is named by the local transcript id, not by the session_ id seats sign with; a reader may look for the wrong name. The refusal text (SESSION.jsonl under the projects folder) is enough to find it. Accepted deviation.

10. nit — the spawn has no timeout and drops the child's failure lines. The verifier's self-test does no I/O beyond one missing-file read, so a hang is not realistic; on a failure the post-stamped case names itself but not the verifier case that failed. Accepted deviation.

11. nit — the PR body is stale (prose face). It names 3 files, the old case counts and sub-agent evidence only. Fixable in the body without moving the head: add label-write.mjs, the session evidence path and the spawn.

Carried from the base record, unchanged: nit 4 (a quoted record is read as a record, accepted) and nit 5 (verifier residuals, #33603).

No regression found across the scope. No model identifier and no evidence path in any text the tools post.

Implemented-by: claude/project-thread-f3mcct
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T03:25Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 2f8c4e024c0ee4c945f74ebc47c86995e84182ab
Local-runs: none
Scope: .claude/skills/pm-dispatch/references/contract-review.md + scripts/pm/verify-review-tier.mjs, scripts/pm/post-stamped.mjs (the --tier-evidence refusal and its battery), scripts/pm/label-write.mjs (the --tier-evidence fold and its battery)

Delta review of a main merge. Base: bd90104a2041, whose record 6888534276 is PASS (nits 7 to 10 carried to #33603, nit 11 on the PR body). The head is a merge commit with two parents, bd90104a2041 and main at 41b64bb08cfe (PR #33510); no developer commit beside it. Inputs read: card #33605 body and both comments; PR #33616 body, file list and the base record; the diff base to head, the net diff against the new merge base, and the check-runs on this head. Code outside the diff was read, not reviewed: fleet-write/dispatch.mjs, close-cards.mjs, first-touch-sweep.mjs, check-skill-line-ratchet.mjs, landing-operations.md, package.json. Nothing was built or run; the one git plumbing read below writes no worktree.

Check-runs on this head: all 44 completed, 25 success, 19 skipped by design (Check Changeset among them, on skip-changeset). None red, none still running. Lint · PM dispatch-gates, Lint · scoped · tooling self-tests and Governed Surface Queue Guard are green.

① Derived judgments

② Semver level

skip-changeset is right: .claude/** and scripts/pm/** only, published by no package.
Clause-②: no — agreed. No published schema or package accept set moves.

③ Boundary flags

  • Dev flags (a), (b), (c) and the open_questions entry were answered on the base record and nothing in this merge reopens them: the verifier, post-stamped and the rule line are byte-identical on the PR's side, and package.json still runs check:pm-post-stamped and check:pm-label-write as before.
  • The developer's report of a textually clean merge is confirmed against the tree, not taken on trust (① first bullet).
  • Main has moved four commits past 41b64bb08cfe since the merge; none touches scripts/pm/** or .claude/skills/pm-dispatch/**. The record covers this head only.

④ Design judgment

(1) Merged label-write.mjs: the state guard and the tier fold coexist. Read in the head's tree:

  • runLabelWrite asks refuseStatelessWrite on step ①'s read, then hands a --comment-file stroke to foldStroke, which still calls judgeBody(text, { mode: 'comment', tierEvidence: options.tierEvidence }, …, 'label-write'). A stroke the state guard refuses returns before any body is judged or sent, so the order opens nothing.
  • runRelease asks the state guard, then reads the file and calls composeReleaseBody with tierEvidence: options.tierEvidence, which passes it to judgeBody. Same order, same result.
  • feat(pm): no open card leaves a lane without a state; triage sweeps the five disjunctions exactly #33510 added NO path that posts a comment body in this file: its hunks are the predicate, its constants, the two guard calls, a battery and one fixture label swap. The file holds exactly two judgeBody calls and both carry the evidence. The two structural pins that bind the call shapes are the PR's updated ones and still match the merged source.
  • The PR's at-tier fold cases target a pull request (kind: 'pull') removing needs:contract-review; the state guard never judges a pull and that label is not a pm state, so main's guard cannot turn those cases. A verdict fold on an issue card that moves no pm state and no assignee passes the guard too. Tried: a record fold that also strips the card's last pm state is refused at ② with zero writes, which is main's rule and not an unverified post.
  • The PR's new import { CONTRACT_REVIEW_TIER } from './dispatch-gates.mjs' sits beside main's widened label-write and dispatch import cycle; the constant is used only inside the self-test, never at module scope, and the green self-test jobs on this head show both entrypoints load.

(2) Other files #33510 changed that this PR's code reads.

  • fleet-write/dispatch.mjs: the five names post-stamped imports (EXIT_UNCONFIRMED, packRequest, resolveRoute, sendFleetWrite, unconfirmedText) are untouched. The new code is the state guard only (stateGuardRows, judgeStateGuard, readStateGuard, their CLI block and battery); it reads labels and assignees, and adds or changes no comment op.
  • close-cards.mjs gains one guard line and one case; first-touch-sweep.mjs (new) reads and prints, it writes no comment.
  • dispatch-gates.mjs, record-recognisers.mjs, check-half-states.mjs, invoked-as.mjs, fleet-write/ops.mjs, fleet-write/validate.mjs, write-pace.mjs, package.json and the workflows are unchanged between base and head.
  • So the tier refusal sits where the PR claims it: post-stamped's --comment and label-write's fold and --release. The raw actions-file door of dispatch.mjs (a comment or comment_edit op handed to it directly) is not judged for tier, exactly as on the base and on main; it is the residual the base record already carries (nit 5, pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach #33603), not something this merge opened.

(3) Net diff. Still the 4 files, see ①.

(4) Regression. None found. contract-review.md reads as on the base; landing-operations.md, which the deleted intro line pointed to, still routes here.

New on this head, nit only:

12. nit — the PR body's numbers are the base's (prose face). It names head bd90104a in its verification blocks, 207 label-write cases (main's battery adds to that), and landing-operations.md lines 13 and 77; after #33510 the second route is line 78. Fixable in the body without moving the head, together with nit 11.

Carried unchanged: nits 4, 5, 7 to 11 as on record 6888534276.

No model identifier and no evidence path in any text the tools post; the merge touched none of those strings.

Implemented-by: claude/project-thread-f3mcct
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

VERDICT: PASS

Adopted by the seat 2026-11-15T03:52Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

席位核对

Verdict: ACCEPT, seat lands (Tier S) · head 2f8c4e024c0ee4c945f74ebc47c86995e84182ab · card #33605 · report 6888176816 · at-tier contract review 6888257144 (FAIL: M1, SF-1, SF-2 on 97bbc81d), at-tier delta 6888534276 (PASS on bd90104a) and at-tier delta 6888810343 (PASS on this head, the main merge; CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

  • Ruling: item C of Leehom's 「先补三项再合并」 (option A, card 「决定 pm: land low-risk skills wording on the seat's review (Tier S arm on the catalog rows) #33531 合并前要先补齐哪些缺口」): the tier-evidence script lands before PR pm: land low-risk skills wording on the seat's review (Tier S arm on the catalog rows) #33531 goes to the maintainer.
  • Shape: draft → main, Fixes #33605. scripts/pm/verify-review-tier.mjs (new), scripts/pm/post-stamped.mjs, scripts/pm/label-write.mjs, .claude/skills/pm-dispatch/references/contract-review.md; 4 files, +430/-21. skip-changeset. Clause-②: no; Metadata-protocol: none.
  • Tier: GOVERNED, Tier S (.claude/**, scripts/pm/**). The seat lands it; no human is asked.
  • Closure: M1, the record-tier battery runs above the failure count and post-stamped's self-test spawns the verifier's (CI shows both). SF-1, a reviewing session's own transcript is evidence and passes only if the whole session ran at tier; the doc and refusal name both paths. SF-2, label-write takes --tier-evidence on both judgeBody calls. The main merge (feat(pm): no open card leaves a lane without a state; triage sweeps the five disjunctions exactly #33510) is a clean three-way merge; the state guard and the fold coexist and every comment path the PR claims still carries the refusal.
  • Accepted deviations (nits): N4 (a quoted record is refused, same scope as the keyed-line refusal); N8 to N10 (verifier comment wording, transcript-id naming, spawn has no timeout); N11/N12 (PR body numbers, prose face).
  • Follow-up: N5 and N7 (verifier residuals: advisorModel, context-suffix ids, nested sub-agents, truncated prefix, a delegating session's own transcript) are on pm: the post-merge governed audit has no owner or schedule, and shows a seat landing through the low-risk arm as a breach #33603 (6888304831). A raw relay comment/comment_edit op is not judged for tier (pre-existing, same card).
  • Pre-landing check: ① same-head PASS 6888810343 on record. ② check-runs on the head: 44, 25 success, 19 skipped, none failing or pending. ③ K = 4 (merge base 41b64bb0), under 15; no scripts/pm/** commit landed on main since.
  • Landing: pr_ready + automerge_enable in the same relay round.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 03:54
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit bb86549 Nov 15, 2026
49 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-f3mcct branch November 15, 2026 04:45
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…the catalog rows) (objectstack-ai#33531)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XUhUNUU87zF4e1oTQPE9zim)_

Fixes objectstack-ai#33501

domain:skills#1 · os-project-manager · session_01FEkQ5pF46HJnpBrhgVWtwV

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:登记表里 `skills/**` 与 `ui/skills/**` 两行仍是 Tier
H,但多了一个「低风险技能臂」读数。以下全部成立才读成 Tier S:受管路径只在这两行;这两行下只有 `.md` 与
`evals/*.json`;其余路径只有 changeset 与 `docs/`、`content/docs/` 下的 Markdown
散文;正文恰好一行裸写的 `Clause-②: no` 和一行 `Metadata-protocol:
none`(引用、代码块、尾随文字、多行声明都算 H);至少一个 changeset,在 head 读出,只发布
`'@objectstack/skills': patch`,也带这两行;不带 `security`
标签,时间线上也没被摘掉过;目录内路径名不含
security/auth/permission;目录内文件只能是「修改」的普通文件,且新旧模式相同(新增、删除、改名、复制、软链、改模式都算
H);不是 fork。合并队列守卫在 merge_group 腿读这些,再要求同 head 的达档复核记录写的是
PASS,席位入队才放行;`--pr` 预检给同一判定。AGENTS.md 第 14 条与 pm-dispatch
两处落地行同步;复核简报写明:路径名看不出的安全内容由复核记录写明、采纳记录的席位加 `security` 标签(带 `--paths`
且命中技能路径时无条件,不带 `--paths` 时以条件句出现)。
- 为什么改:你 2026-11-14 同意把低风险 Tier H 放权给座位(「同意 把低风险的 Tier H 放权给座位」「把低风险的
Tier H 放权给座位,立 p1 卡优化」);现在座位入队技能措辞 PR 会被必需检查 Governed Surface Queue
Guard 弹出。
- 风险与回滚:上面任一条不成立或读不到(正文、标签、时间线、changeset、fork 判定),一律仍是 Tier
H(失败即关);复核记录是 FAIL 或没写结论也拒。CODEOWNERS、`--test`、`--branch` 与中继请审照旧按路径读
H。`docs/adr/**` 不动,仍 Tier H,ADR 那一半由 objectstack-ai#33539 承接。回滚即还原本 PR。
- 先看:`scripts/pm/check-governed-merges.mjs` 的 `lowRiskArmVerdict` 与
`readBareDeclaration`;`scripts/pm/check-governed-queue-guard.mjs` 的
`readLowRiskTier` 与 `lowRiskRecordVerdict`;AGENTS.md 第 14 条 Tier S 括号。
- 两分钟验证:`node scripts/pm/check-governed-merges.mjs --pr 33394`,预期 exit
3、`Tier S(席内达档复核落地)` 与 `low-risk skills arm ... Tier S` 一行。
- 需要你做的:本 PR 改 `AGENTS.md`,本身是 Tier H:请合并(或批准后由席位落地)。

## What changes

- **The register (`scripts/pm/check-governed-merges.mjs`).** The
`skills-catalog` and `ui-skills-catalog` rows keep `tier: H` and gain
`lowRisk` (scoped to objectstack), modelled on the workflows split: a
READING moves them, the row does not. `lowRiskArmVerdict(matched, repo,
reading)` reads Tier S only when ALL of these hold, each a printed
reason when it does not:
  - every governed row hit is a catalog row;
- every changed path lies under a hit catalog row or matches
`LOW_RISK_RIDER_PATTERNS` (a `.changeset/*.md`, or Markdown prose under
`docs/` or `content/docs/`), and every path under a catalog row is `.md`
or `evals/*.json` (`LOW_RISK_ARM_FILE_PATTERNS`);
- the body carries exactly one bare `Clause-②: no` and one bare
`Metadata-protocol: none`. `readBareDeclaration` runs the fleet's own
readers (`readClause2Line`, `readMetadataProtocolLine`) line by line,
never a second parser: a second declaration, trailing words, an arm, or
the line quoted or inside a fence is H;
- at least one changeset, each read at the head, whose frontmatter
releases nothing but `'@objectstack/skills': patch` (an empty
frontmatter is allowed) and whose body carries the same two bare lines
(`lowRiskChangesetReasons`);
- the labels were read and none is `security`, and the timeline was read
and has no `unlabeled` event for `security`;
  - `forkVerdict` of the pull object reads a same-repository head;
- no catalog path names security, auth or permission
(`LOW_RISK_SECURITY_NAME`, any case, any segment below the catalog row).
Ruling-ref: card objectstack-ai#33501 comment 6888245932, item 1 (Leehom, option B
「标签和路径都读」): the label OR the path sends the PR to H. A segment rather
than the basename, because a skill folder named for security has
`SKILL.md` as its entry file; a security word in a rider path
(`docs/**`) is not read. On `main` five catalog files match, all
basenames: `skills/objectstack-api/evals/endpoints-auth-routes.json`,
`skills/objectstack-data/evals/hooks-security-seeds-datasources.json`,
`skills/objectstack-data/rules/security.md`,
`skills/objectui/evals/auth-permissions.json`,
`skills/objectui/guides/auth-permissions.md`;
- every catalog path is a MODIFIED regular file with the same mode at
both ends (`catalogFiles`, each row `{ path, status, oldMode, mode }`):
an added, deleted, renamed or copied skill or eval, a symlink or
submodule at either end (mode other than `100644`/`100755`), any mode
change (a symlink turned regular file, or `100644` to `100755`), or a
status or mode that was not read is H. Ruling-ref: card objectstack-ai#33501 comment
6888245932, item 2 (Leehom, option A 「先补三项再合并」, item B).

No reading, or an unmeasured one, is Tier H with its reason.
`applyLowRiskArm` runs after `applyWorkflowSplit`, so a split workflow
row beside a catalog path counts as a governed row outside the arm.
`governedTierFor` and `testVerdict` take the reading as one more
optional argument; every caller that passes none answers exactly as
before (catalog paths Tier H). `renderLowRiskLines` prints the arm's
verdict. `--pr` builds the reading from the pull object and file walk it
already fetches (`pullLowRiskReading`), plus the timeline over the same
channel (`fetchTimelineOver`, only when a catalog path is hit, every
page or NOT MEASURED) and each changeset at the PR's head from this
checkout (`pullChangesetReading`, NOT MEASURED with the fetch that cures
it when the head is not here). `--pr` also reads each file's status off
the API's file walk (`pullCatalogStatuses`; a rename's old name reads
`renamed`, a copy's source `copied source`, never `modified`) and each
modified catalog file's mode at the merge base and at the head from this
checkout (`pullCatalogReading`, `git ls-tree`; a base or head not here,
or no merge base, is NOT MEASURED, and the hint names the fetch:
`pull/N/head` and the PR's own base ref, or its sha when the ref was not
read, never an assumed `main` (`pullFetchHint`, which the workflow
split's reading now shares)), since the API can call a symlink replaced
by a regular file `modified`. `--test` and `--branch` have no body and
say NOT MEASURED. The header section "The low-risk skills arm" lists the
conditions.
- **The queue guard (`scripts/pm/check-governed-queue-guard.mjs`).**
`decomposeGovernedWork` keeps `allPaths` (every path of every attributed
commit of the PR, collected before the governed filter drops a row) and
`changesetRefs` (each changeset with the commit that touched it,
ungoverned commits included). The entry reads the arm NOT MEASURED
there; the `pull_request` leg prints Tier H with that note and never
reddens. On `merge_group`, `readLowRiskTier` re-reads each catalog
entry's tier through the register's `governedTierFor` with: the body,
label names and `forkVerdict` of the pull object the leg already fetched
(`makePullReader` now returns `labels` and `fork`); the timeline the
enqueue leg already read (kept, not re-fetched; an unread or failed
timeline is NOT MEASURED); each changeset by `git show <commit>:<path>`,
and each governed commit's status and both modes per path by `git
diff-tree -r --raw -z --no-renames` against its first parent
(`catalogFilesOf`, the raw line's old and new mode; an add in one commit
and an edit in the next reads `added`). Then the Tier S record leg runs,
and for an entry the arm put at Tier S the same-head record must also
READ PASS: `lowRiskRecordVerdict` reads the comment the locator chose
with the fleet's `contractReviewVerdictOf`. FAIL, no verdict word, or no
reader loaded is a refusal (`not-pass`) with its own line. A record
carried from an older head (the regeneration and prose-only carry)
stands for the arm only when the hops, diffed with the leg's git reader
(`--no-renames`, so a rename lists both paths), moved no `.changeset/`
path and no path under a catalog row (the carry admits both as prose,
yet the arm reads its tier from them); an unreadable diff refuses. The
other Tier S legs are unchanged and still read no verdict (objectstack-ai#33541).
- **`scripts/pm/record-recognisers.mjs`.** Re-exports
`contractReviewVerdictOf` from `check-half-states.mjs` (already its
import), so the guard's lazy loader reaches the fleet's one verdict
reader. The reviewer brief (`--brief-template`,
`contractReviewBriefLines`) gains a `Security —` line: when the change
teaches security, auth or permission behaviour the path name doesn't
show, the record says so and the seat adopting the record adds the
`security` label (ruling item 1; an isolated reviewer cannot label).
Built with `--paths`, it prints when a `hits` path sits under a low-risk
catalog row (`lowRiskRowHit`) and not otherwise. Built without `--paths`
(the bare `--brief-template` that `contract-review.md` and
`coordinator.md` teach), it prints in a conditional form, "if a `hits`
path is under `skills/**` or `ui/skills/**`", on every at-tier face
except the narrowing.
- **`AGENTS.md` Prime Directive 14.** The surface list drops "all Tier
H"; Tier H is "every register row outside Tier S"; Tier S names
`.claude/**` and the objectstack workflow edits and skills-only wording
the register reads as S (`readWorkflowDiff`, `lowRiskArmVerdict`). It
also names the duty for security teaching the name test cannot see (a
file such as `relationships.md`): the seat adopting the review's record
labels it `security` ("the seat labels unnamed security teaching"). To
fit the 120-byte budget in the same 16 lines, the paragraph is
re-wrapped and four phrases are shortened without changing a rule:
"every register row outside Tier S" to "every row outside Tier S", ",
and objectstack" to ", objectstack", "then lands it" to "lands it",
"carries no information about" to "says nothing about". The detail lives
in the script header, per AGENTS.md's own rule. Net content is 13 bytes
shorter; the paragraph is re-wrapped at the 120-byte budget and keeps
its 16 lines (AGENTS.md 1050 to 1050).
- **pm-dispatch.** `SKILL.md`: "路径面命中 Tier H" becomes "定档 Tier H", and
the workflows line names both readings and keeps the workflow Tier H
triggers (`readWorkflowDiff`(发布面/C2/拒读⇒H),技能 `lowRiskArmVerdict`,未读⇒H),
within the 120-byte line budget. `references/lanes/skills.md`: the
pre-arm check is `check-governed-merges --pr N` (only `--pr` can read
the arm). The other places the card and comment 6885437809 listed were
read and still hold as written: `contract-review.md` 16 and 51 and
`landing-operations.md` 12 and 89 speak of Tier S and Tier H
generically, `execution-duties.md` 17's soft cap already counts only PRs
that stay Tier H, and `coordinator.md` names no tier.

## Why

Ruling-ref: Leehom, project chat 2026-11-14, verbatim 「同意 把低风险的 Tier H
放权给座位」, then 「把低风险的 Tier H 放权给座位,立 p1 卡优化」. Measured on `origin/main`
f068cde: `GOVERNED_SURFACES` put `skills/**` at Tier H, and the guard's
`merge_group` leg passes a Tier H entry only on an authorized approval
or enqueue (`GOVERNED_APPROVERS`), so a seat enqueue of a skills wording
PR is refused. Comment 6885437809 measured that the ruleset requires no
review (PRs merged with zero reviews), so the guard is the only stop and
no settings change is owed.

## Acceptance notes

- **`docs/adr/**` stays Tier H.** The ruling names ADR notes, but a path
cannot tell a note from a changed decision. objectstack-ai#33539 carries the ADR half
of the ruling (an add-only note reading).
- **The relay's review plan still summons the approvers**
(`scripts/pm/fleet-write/execute.mjs` `governedReviewPlan` reads paths
only): a summons, not a block. Follow-up objectstack-ai#33540.
- **The other Tier S legs of the queue guard still read no verdict**
(`.claude/**`, the workflow split): only the low-risk arm requires PASS
here. Follow-up objectstack-ai#33541.
- **The reviewer's labelling duty is in PD 14 and in the review brief,
not in `SKILL.md`, `references/lanes/skills.md` or
`references/contract-review.md`.** Those three are at their ruled line
ceilings with no headroom; adding the duty there costs a line in each,
which needs a cut the seat chooses or a ceiling ruling. PD 14 binds
every seat, and the brief hands the duty to the reviewer itself.
- **PD 14 does not quote the ruling or list the conditions** (review nit
N1, not taken). `AGENTS.md`'s own rule allows no ruling date or
quotation there (provenance cites a ruling record), and its line ceiling
has no headroom. The conditions and the ruling live in the script header
and the `lowRiskArmVerdict` docblock, which PD 14 names.
- **Tier evidence first.** Per ruling item 2 (C), the tier-evidence
script (objectstack-ai#33605, PR objectstack-ai#33616) lands before this PR goes to the maintainer.
- **Not in this PR:** the `-z` gap in `enumerateRows` (it predates this
PR) goes to its own card, objectstack-ai#33620.
- **`--test` and `--branch` always read the arm NOT MEASURED** (they
have no PR body); the seat's pre-arm check for a skills PR is `--pr N`.
- **Shared file with objectstack-ai#33484:** `.claude/skills/pm-dispatch/SKILL.md`
(two different lines). Whichever lands second merges `origin/main`.
- **Live readings** on two PRs waiting for a click: `--pr 33394` and
`--pr 33482` both still read Tier S through the tightened arm (timeline,
fork and changesets read; head fetched locally). They still need a
same-head `CONTRACT_REVIEW_TIER` PASS record before the seat enqueues,
and they can only use the arm once this PR is on `main`.

## Verification

Head `60e5e255` (after the at-tier reviews 6886787995, 6887175399,
6887454202, 6887748912, 6888217778 and 6888563583, whose SF5, N11 and
N12 this head answers; branch merged with `origin/main`, which brought
other lines of `.claude/skills/pm-dispatch/SKILL.md` and no other file
this PR touches).

<details><summary>Self-tests of the edited scripts</summary>

- `node scripts/pm/check-governed-merges.mjs --self-test`: exit 0, 690
assertions. Battery "⚖️ the low-risk skills arm" now 74 cases (floor
pinned at 74), pinning each review item: M1 (no changeset; changesets
unread; another package, `minor`/`major`, or a second release line;
changeset missing or annotating either declaration; no frontmatter; not
readable at the head; a changed changeset the reading holds no file for;
body without a bare `Metadata-protocol: none`; the catalog at patch in
either quote or an empty frontmatter is S), S1 (`unlabeled` security in
any case; another label removed stays S; timeline unread or not a list;
`--pr` reads the timeline only when a catalog path is hit), S2 (trailing
words; two declarations, even two `no`; a quoted or fenced `no` before a
real `yes`, backtick and tilde fences; a lone fenced or quoted `no`; a
closed fence before the real line stays S), S3 (fork; deleted head repo;
unread fork predicate), S4 (`.js`, `.json` outside `evals/`, nested
`evals/sub/*.json`, `.yaml`, `.png`, `.sh` are H; `evals/*.json` is S),
the security name test (a matching `.md` and `evals/*.json`, all five
files on `main`, any case, the `ui/skills/**` catalog, a skill folder
named for it, a rename into and out of such a name, a rider path not
read), the modified-file rule (added, deleted on either spelling,
renamed both sides, added then modified, symlink, mode or status not
read; `100755` at both ends and an added rider stay S), N10 (a symlink
turned regular file called `modified` is H on its base mode; `100644` to
`100755` and back are H; a base mode not read is H; a copy's source
reads `copied source` and H), plus `pullChangesetReading`,
`pullCatalogStatuses`, `pullCatalogReading` (merge-base and head modes;
base not here, no base sha, or no merge base is NOT MEASURED; the fetch
hint names the base sha when no ref was read and the base ref, such as
`release/v4`, when it was; its symlink-at-base reading drives the arm to
H) and `lowRiskRowHit`.
- `node scripts/pm/check-governed-queue-guard.mjs --self-test`: exit 0,
487 cases. Battery "⚖️ the low-risk skills arm at the queue" now 54
cases (floor 54), end to end through `runGuard` on `merge_group`: the
PASS clear; a PASS record carried over a docs-only hop clears, while one
carried over a hop that rewrote the changeset or moved a skill's
`CHANGELOG.md` is refused, as is a carried record whose hops cannot be
diffed; the carry check's diff carries `--no-renames` (argument pinned),
and on a real temporary repository (every git call under `gitFreeEnv()`
with `-c commit.gpgsign=false`; the self-test also passes with `GIT_DIR`
set to a bogus path) a skill renamed out of the catalog into
`content/docs/` refuses the carried record while the plain diff names
only the destination, and a rename into `permission-guide.md` lists both
sides, refuses the carry naming both, and reads H through the name test;
a security-named file, a rename into or out of such a name, a skill
added or deleted in the group, a rename as delete plus add, a symlink, a
symlink turned regular file (old mode `120000`, as `M` or as `T`), a
regular file made executable, and a status read that throws or misses
the path each stay H with a PASS record; `catalogFilesOf` reads status
and both modes per commit; a same-head FAIL record, a record with no
verdict word, a newer FAIL behind an older PASS, and a recogniser set
without the verdict reader are each refused (`not-pass`); `**VERDICT:
PASS**` clears; a non-arm Tier S entry with a FAIL record still stands
(unchanged, objectstack-ai#33541); M1, S1, S2, S3, S4 each H with a valid PASS record
(changeset in another commit of the PR included; no git reader; a
timeline that threw or was never read); `makePullReader` carries the
fork predicate.
- `node scripts/pm/record-recognisers.mjs --self-test`: exit 0, 386
cases. Battery "letter C" 19 to 22: the brief over a `skills/**` or
`ui/skills/**` path (beside other paths, and through the
`--brief-template --paths` CLI) carries the duty unconditionally, with
the seat adding the label; the bare brief, `--face rules` and `--face
schema` (function and CLI) carry it in the conditional form; a known
path list off the arm, the declaration face and the narrowing face carry
none.
- Mutation checks (not kept, each restored): dropping the PASS check,
ignoring the guard's timeline, ignoring the guard's fork reading,
ignoring `unlabeled`, allowing a second declaration, allowing a fenced
line, switching S4 off, allowing no changeset, skipping the
carried-record check, dropping `--no-renames`, switching off the
security name test, switching off the status test (on either leg),
dropping the brief line or printing it on every brief, ignoring a mode
change, reading the head mode only, reading the base mode at the head,
the guard reading the new mode as the old, carrying a copy's source as
`renamed`, dropping the brief's conditional form, wording the line as
the reviewer adding the label, and a fetch hint naming `main` or only
the base sha each turn the self-test red.

</details>

<details><summary>Derived gates: 47 derived, 47 run, all exit
0</summary>

`node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` derived 47 families on head `60e5e255`
(`check:pm-record-recognisers` among them, for the re-export and the
brief line). Each ran with its exit code captured before any pipe, after
building `@objectstack/lint...` under the verify lock (VERDICT
command-exit 0). All 47 exit 0. `--ran`: "47 derived famil(ies)
accounted for — 47 run, 0 NOT-MEASURED (a DERIVED zero)". CI families
are read from this PR's check-runs, not re-run here.

</details>

<details><summary>Tier, governed reading, line budget</summary>

- `dispatch-gates --tier`: MANDATORY contract-review tier, from
`.claude/skills/pm-dispatch/SKILL.md`.
- `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `SKILL.md`
stays 319 lines; its workflows line is exactly 120 bytes and the tier
line says the skills arm is exclusive. `AGENTS.md` stays 1050 lines; PD
14's last eight lines are re-wrapped at the byte budget for
"skills-only".
- Live on head `0fbe225c`: `--pr 33394` and `--pr 33482` read Tier S
through the arm, with the timeline, fork, changesets and both file modes
(merge base and head) read (heads fetched locally).

</details>

## Human Minimum

- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(No schema touched.)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (CI runs it.)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (Publishes
nothing: `scripts/pm/**`, `.claude/**`, `AGENTS.md`; `skip-changeset`.)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (Not touched.)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5pF46HJnpBrhgVWtwV

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5pF46HJnpBrhgVWtwV -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…udges each on a same-head at-tier PASS record (objectstack-ai#33711)

<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1X5SKzXRHQWjMHXgyfyiaqkP)_

Fixes objectstack-ai#33603

Clause-②: no
Metadata-protocol: none

domain:skills#1 · os-project-manager · session_01FEkQ5kXwEA8abP4hMhtodW

## 维护者速读

- 改了什么:合后审计 `check-governed-merges.mjs` 现在对每个 skills 合并,用队列守卫自己的 arm
读法和记录读法再读一遍落地提交。按守卫自己的顺序判:合并前有授权批准或授权入队的,算维护者的合并,留在维护者清单并写明谁放行;其余 arm 判为
Tier S 的合并单独列出,每条再查同 head、达档、PASS、出自守卫信任的作者、合并前已存在且未再编辑的复核记录,且该 PR
确实以这个提交落地(`merge_commit_sha`),缺了就标 ⛔ BREACH。另外修了 objectstack-ai#33616 评审留下的三处:校验器比对
`advisorModel`、拒收把复核交给子代理的转录,post-stamped 对校验器自测的 spawn 加超时并转出子进程的失败行。
- 为什么改:AGENTS.md 第 14 条把合后审计定为座位落地的补偿控制,但它按路径分类,arm 落地看起来和「Tier H
无批准」一模一样(卡 objectstack-ai#33603,评审 6886787995 N3);objectstack-ai#33616 的复核记录把校验器残项挂到本卡。
- 风险与回滚:只动三个 `scripts/pm/` 工具文件,审计仍是只报告;读不到时记 NOT MEASURED、整轮
INCOMPLETE(退出 2),不会把未读的合并报成干净。校验器更严:复核会话里调用过 Agent / Task / Workflow /
SendMessage 的转录现在被拒,要传子代理自己的输出。回滚即还原本 PR。
- 先看:`scripts/pm/check-governed-merges.mjs` 的
`readArmLanding`(新,读法全部来自队列守卫)和 `renderReport`
的分列;`scripts/pm/verify-review-tier.mjs` 的 `SUB_AGENT_TOOLS` 判断。
- 两分钟验证:`node scripts/pm/check-governed-merges.mjs --since-ref
objectstack=b937b75f --repos objectstack`,预期 objectstack-ai#33668、objectstack-ai#33555、objectstack-ai#33632 三条
skills 合并都留在维护者清单,各带一行「cleared by an authorized enqueue (os-zhuang)」;没有
BREACH。
- 需要你做的:定合后审计的周期执行人(本 PR 建议:定时 workflow,由席位立卡交你,见下文 Owner);本 PR
本身无,席位落地。

## What changes

**Part 1, the audit (`scripts/pm/check-governed-merges.mjs`).**

- `readArmLanding` reads every skills landing in the sweep again with
the queue guard's own readers on the landed commit (the commit the merge
group judged): `decomposeGovernedWork`, `readLowRiskTier` (the
register's `lowRiskArmVerdict`), `landsOnLowRiskArm`, then
`recordAuthorTrusted`, `recordVerdict` and `lowRiskRecordVerdict`. One
reader: no predicate is restated here; the guard is imported lazily
(`loadArmReaders`, `ARM_READER_EXPORTS`), and a missing export or failed
load is NOT MEASURED.
- Five states. `pass`: the arm reads Tier S and a same-head record that
stands at the tier and reads PASS exists. `breach`: the arm reads Tier S
and no such record exists. `cleared`: the arm reads Tier S, and an
authorized approval or enqueue cleared it first. `tier-h`: the arm reads
H (its reasons are printed under the row), or the landing crosses the
3,000-line human-merge line. `not-measured`: the pull, the timeline or a
comment thread could not be read.
- The legs run in the guard's own order (`entrySatisfied`): an
authorized approval (`authorizedApprovalVerdict` on `makeReviewReader`),
then an authorized enqueue (`enqueuerFromTimeline`,
`authorizedEnqueueVerdict` on the timeline already fetched), then the
record. A landing cleared by either of the first two is `cleared`: the
maintainer's merge, kept on the maintainer's list with who cleared it,
never a BREACH.
- Each leg reads only what existed before the landing. Reviews and
timeline events count strictly before `merged_at`: on a queue merge the
`removed_from_merge_queue` event shares the merge's instant (measured on
objectstack-ai#33555, objectstack-ai#33632 and objectstack-ai#33616), so the post-merge timeline would always read
the enqueuer as undetermined. Comments count only from an author the
guard trusts (`recordAuthorTrusted` on `recognisers.trustedAuthors`, the
objectstack-ai#33687 binding: the relay's identity and `GOVERNED_APPROVERS`), and only
when created and last edited (`updated_at`) at or before the landing. So
a record any commenter posted cannot excuse a landing, an untrusted row
cannot shadow a trusted one, and a record written or edited after the
landing cannot excuse it; a BREACH whose only record was edited after
the landing names that comment.
- The record's head is tied to the landed commit: the attribution read
now carries `merge_commit_sha`, and a pull GitHub says is not merged (no
`merged_at`) or merged as another commit is a BREACH with that reason,
never `pass`. A failed attribution read is NOT MEASURED. Reads ride the
channel that attributed the row (`makePullReader`, `makeTimelineReader`,
`makeCommentReader`), and each one counts in the API lookup total.
- The report lists arm landings (`pass` and `breach`) apart, after the
maintainer's list, under their own contract lines; the head counts them
and their breaches. `cleared`, `tier-h` and `not-measured` rows stay on
the maintainer's list with an arm cell. A `not-measured` row makes the
sweep INCOMPLETE (exit 2) and the banner names it. `--json` carries the
reading as `entries[].arm`.
- Neither dispatch awaits at module scope any more (`main().then`,
`selfTest().then`): the guard imports this file at module scope, so an
awaiting dispatch deadlocks the lazy import (exit 13). The two comments
that said the lazy door is shut here were corrected.
- The register header's arm section says what the sweep now does and its
limit: it reads the record, not the run that wrote it. At the seat's
request, the line that called the relay's review plan path-only now says
the plan is not path-only from objectstack-ai#33540: `governedReviewPlan`
(`scripts/pm/fleet-write/execute.mjs`) reads the arm with its readers.
objectstack-ai#33686 has since merged, so the line holds on main.

**Part 2, the owner.** Proposed below; no workflow and no rule line in
this PR.

**Part 3, the verifier residuals (PR objectstack-ai#33616's records 6888257144 N5 and
6888534276 N7 and N10).**

| Residual | Verdict | Where |
|:--|:--|:--|
| `advisorModel` not compared | Fixed. Present and not null, it must
equal the tier. Measured present on every assistant entry of a real
session transcript, equal to the served model. |
`verify-review-tier.mjs`, 2 pin rows |
| A model value with a context suffix refuses an at-tier run | Closed.
Fails closed by design, and measured unreachable here: a session
configured with `[1m]` records `message.model`, `requestedModel`,
`advisorModel` and the identity attachment without the suffix (129
turns). Accepting a suffix would widen the accept set on an unseen
shape. The header says so. | header only |
| A nested sub-agent's transcript is not followed | Fixed by refusing
instead of following: an assistant turn that calls `Agent`, `Task`,
`Workflow` or `SendMessage` (`SUB_AGENT_TOOLS`) refuses, naming the tool
and asking for the transcript of the agent that ran the review, one that
called no other agent (a seat that reviewed in-seat beside unrelated
agents passes the review's own sub-agent file). Following would need the
child's file, which the transcript does not name. |
`verify-review-tier.mjs`, 3 pin rows |
| A delegating session passing its own transcript passes whatever served
its sub-agent | Fixed by the same refusal (a session that spawned its
reviewer is refused). | 1 pin row |
| A cleanly truncated transcript prefix passes | Closed. No honest run
writes a prefix: the record is the final turn's text, so a prefix
without that turn is a copy the seat cut, the dishonest route the card
leaves to the audit. A completeness test would rest on `stop_reason`,
which this session cannot measure for a sub-agent output; a wrong guess
would refuse every at-tier record. Named in the header's boundary. |
header only |
| The verifier self-test spawn has no timeout and hides the child's
failure lines | Fixed. `timeout: 120000`, and `childRunDetail` puts the
timeout or signal, the exit and the child's own failing case lines into
the case's detail. | `post-stamped.mjs`, 1 pin row |
| A raw relay `comment` / `comment_edit` op is not judged for tier | Not
here: it lives in `scripts/pm/fleet-write/` (the relay's door), outside
this card's file surface and on the same files as objectstack-ai#33540. Belongs on its
own card. | report |

## Owner of the weekly audit

Proposed owner: **a scheduled workflow**, filed by the seat for the
maintainer (this PR adds none). Reasons:

- The audit is the compensating control for seat landings, and the
skills seat lands most of the arm's PRs. A seat patrol would have the
audited party run its own audit.
- A workflow runs whether or not a seat is staffed; seats go off duty
and a patrol stops with them.
- It needs only an objectstack checkout with history, `--repos
objectstack`, a topological `--since-ref` from the last run's printed
tip (or `--since 8d` for overlap), and a read token. A ⛔ BREACH or
`not-measured` row can be surfaced in the job summary; making the job
red on `entries[].arm.state === 'breach'` would be a reader of `--json`,
not a change here.

The interim, until the workflow lands: the skills seat's patrol runs
`node scripts/pm/check-governed-merges.mjs --since 8d --repos
objectstack` weekly and posts the arm section to the seat post. That
line does not fit
`.claude/skills/pm-dispatch/references/lanes/skills.md`: 35 lines
against a ceiling of 35, headroom 0 (`check-skill-line-ratchet`), so it
is reported here and not added.

## Tests

- `node scripts/pm/check-governed-merges.mjs --self-test`: 728
assertions. New battery `⚖️ objectstack-ai#33603: ...` (38 cases, floor 38; roster
floor 37 to 38). It loads the REAL guard through `loadArmReaders` and
drives `readArmLanding` with fake fetchers and a fake git: pass on the
PR thread and on the card; breach for no record, a FAIL record, a record
on another head, a record below the tier, an unsigned record, a record
from an untrusted author, a record posted after the landing, a record
edited after it (the reason names the edited comment), a pull merged as
another commit and a pull closed unmerged; an untrusted FAIL after a
trusted PASS does not shadow it (and a trusted one does); cleared for an
authorized approval and an authorized enqueue on the measured
queue-merge timeline, with controls that a seat-account enqueue, a
post-landing approval and an unauthorized approval clear nothing; tier-h
for a `security` label, `Clause-②: yes`, a path outside the allowlist in
the same commit and an oversized landing; not-measured for an unread
pull, review list, timeline, comment thread or merge, and for readers
that did not load; null without a catalog row or a PR number; the
report's head count, its apart section and a cleared row staying on the
maintainer's list; the INCOMPLETE banner; and a structural pin that
neither dispatch awaits at module scope.
- `node scripts/pm/verify-review-tier.mjs --self-test`: 27 cases across
6 batteries (new battery: advisor, sub-agent spawn, and the refusal's
advice naming the reviewing agent).
- `node scripts/pm/post-stamped.mjs --self-test`: 787 cases across 29
batteries (record-tier battery floor 15 to 16).
- A live sweep on this head, read-only, from `b937b75f`: 8 governed
merges. The three skills landings, objectstack-ai#33668, objectstack-ai#33555 and objectstack-ai#33632, read Tier
S on the arm and were each enqueued by `os-zhuang` before the merge, so
each is `cleared` and stays on the maintainer's list; nothing is listed
apart and nothing is a BREACH; exit 0. (Before the review fix, objectstack-ai#33555
and objectstack-ai#33632 were listed apart as PASS.)

<details><summary>Ablations, each restored and `git diff` checked empty:
the first five on the first commit, the next six on the first review-fix
commit, the last two on the second</summary>

```text
the merge-time filter on comment rows removed      -> ✗ a-PASS-record-posted-AFTER-the-landing-is-a-BREACH
the apart filter in renderReport removed           -> ✗ arm-landings-are-listed-AFTER-the-maintainers-list-never-in-it
any non-unreadable record read as pass             -> ✗ no-record / FAIL-record / record-on-another-head is a BREACH
the sub-agent spawn refusal disabled               -> ✗ 3 verifier cases (nested reviewer, delegating session, other tool names)
the advisorModel comparison disabled               -> ✗ an advisor model off the tier refuses
the authorized-approval leg disabled               -> ✗ 1 case (an approval before the landing clears it)
the authorized-enqueue leg disabled                -> ✗ 1 case (an enqueue clears it)
timeline events counted AT merged_at, not before   -> ✗ 1 case (the measured queue-merge timeline)
the merge_commit_sha tie disabled                  -> ✗ 1 case (a pull merged as another commit)
the not-merged check disabled                      -> ✗ 1 case (a pull closed unmerged)
the updated_at filter disabled                     -> ✗ 1 case (a record edited after the landing)
the author binding disabled                        -> ✗ the untrusted-author cases
the edited-after note disabled                     -> ✗ 1 case (the BREACH names the edited comment)
```

</details>

## Acceptance notes

- An arm landing the maintainer's account enqueued is the maintainer's
merge by the guard's own reading, whoever prepared it; the sweep follows
that reading and does not second-guess it.
- The record's existence is all the audit adds; it cannot tell a record
from the run that served it (the verifier's boundary). Body and labels
are read as they are now; a removed `security` label is still caught by
the timeline.
- The arm reads today's register, so a skills landing from before the
arm existed (objectstack-ai#33632 landed 05:14Z, the arm at 05:57Z) is listed apart
when it qualifies. It had its PASS record, so it is not a breach.
- `contract-review.md`'s rule line on session evidence (「卡线程或席内复核」) does
not yet say that a session which spawned or messaged a sub-agent is
refused; the refusal text says what to pass. Carrier: the skills seat
(the file is at its 63-line ceiling).
- Raw relay `comment` / `comment_edit` ops not judged for tier: carrier,
the skills seat, as its own card (relay files).

## Verification

Gate list `dispatch-gates --commands` on this diff: 35 families, all run
locally; results below. `dispatch-gates --tier`: no path-derived mandate
(floor sonnet, default opus, ceiling fable); 449 changed lines, under
3,000. `check-governed-merges --branch claude/project-thread-sgww6y`:
NOT governed (0 of 3 paths on the register).

On head c48e9f1 (rebased on main `48e69596`, which carries objectstack-ai#33686 and
objectstack-ai#33687), every derived family ran and exited 0: `dispatch-gates --ran`
reconciles 35 derived, 35 run, 0 NOT-MEASURED. One gate went red on the
first pass of the first round and was fixed in its own commit:
`check:pm-dispatch-gates` refused a helper named like a compound
self-test (`childSelfTestDetail`, not in `COMPOUND_ANCHOR_LEDGER`); it
is now `childRunDetail`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW)_

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01FEkQ5kXwEA8abP4hMhtodW

<!-- signed: domain:skills#1 · os-project-manager ·
session_01FEkQ5kXwEA8abP4hMhtodW -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

1 participant